﻿using System;
using System.Collections.Generic;
using System.Web;

/// <summary>
/// Summary description for CXPromotion
/// </summary>
/// 
namespace CE.Promotion
{
    public class CXPromotion
    {
        private Int64 _cxpromoqaid;
        private bool _isfinancial;
        private string _name;
        private string _contactno;
        private string _email;
        private string _ciexpirymonth;
        private Int64 _vieweddetailid;
        private bool _status;
        private Int64 _refceuserid;
        private string _rowguid;
        private DateTime _createddate;
        private DateTime _modifieddate;

        public CXPromotion()
        {
            //
            // TODO: Add constructor logic here
            //
            ClearFields();
        }

        public Int64 CXPromoQAId
        {
            get { return _cxpromoqaid; }
            set { _cxpromoqaid = value; }
        }

        public bool IsFinancial
        {
            get { return _isfinancial; }
            set { _isfinancial = value; }
        }

        public string Name
        {
            get { return _name; }
            set { _name = value; }
        }

        public string ContactNo
        {
            get { return _contactno; }
            set { _contactno = value; }
        }

        public string Email
        {
            get { return _email; }
            set { _email = value; }
        }

        public string CIExpiryMonth
        {
            get { return _ciexpirymonth; }
            set { _ciexpirymonth = value; }
        }

        public Int64 ViewedDetailId
        {
            get { return _vieweddetailid; }
            set { _vieweddetailid = value; }
        }

        public bool Status
        {
            get { return _status; }
            set { _status = value; }
        }

        public Int64 RefCEUserId
        {
            get { return _refceuserid; }
            set { _refceuserid = value; }
        }

        public string RowGUId
        {
            get { return _rowguid; }
            set { _rowguid = value; }
        }

        public DateTime CreatedDate
        {
            get { return _createddate; }
            set { _createddate = value; }
        }

        public DateTime ModifiedDate
        {
            get { return _modifieddate; }
            set { _modifieddate = value; }
        }

        public void ClearFields()
        {
            _cxpromoqaid = 0;
            _isfinancial = false;
            _name = "";
            _contactno = "";
            _email = "";
            _ciexpirymonth = "";
            _vieweddetailid = 0;
            _status = false;
            _refceuserid = 0;
            _rowguid = "";
            _createddate = CE.Global.General.GetUTCDateTime();
            _modifieddate = CE.Global.General.GetUTCDateTime();
        }
    }
}